//
//  EducationAdminClient_URL.h
//  EducationalAdminClient
//
//  Created by kwsdzjx on 15/11/23.
//  Copyright © 2015年 周佳兴. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifndef EducationAdminClient_URL_h
#define EducationAdminClient_URL_h

#define LOGINFOUNCTION @"LoginFounction"   // 登陆页存储数据存储路径
#define LOGINOK @"loginOK.plist"           // 登陆页存储路径文件名称


#define NETSTATE @"Open"
#define USER @"user"
#define PASS @"pass"
#define STYLE0 @"0"
#define STYLE1 @"1"

#define UserChange @"userChange"
#define USERNAME @"username"
#define ROLENAMES @"roleNames" // 用户角色存储 去除 字段 US

#define UISTYLE @"UIStyle"// 两种风格使用
#define USERTYPE @"UserType"//用户角色种类
#pragma mark - 主项目功能菜单
/**
 *
 ***********************|主项目功能菜单|***********************
 *
 */



#define EnglishLanguage @"EnglishLanguage"//语言版本为英文
#define AvatarUpload @"AvatarUpload"//头像上传功能
#define LeftRightModel @"LeftRightModel"//左右结构功能
#define UserRoleName @"UserRoleName"//用户角色名是否显示 111
#define TimeLineModel @"TimeLineModel"//时间轴模块功能
#define EvalutionModel @"EvalutionModel"//评价模块


#define PersonalInformationStarUI @"PersonalInformationStarUI"//个人资料星星UI
#define MainLoginUI @"MainLoginUI"//主项目以及学员端UI





/**
 *                      ^           ^
 ***********************|主项目功能菜单|***********************
 *
 * localhost:8081/edus_auto_main/update_interfaceDicrectTrigger.do?directSetIds=&dataIds
 */

#define BASE_URL_SAVE @"BASEURL"

#define SESSION_ID @"BASEURL"

#define USERID @"userid"
#define PERSONDIC @"PersonDic"
#define FEEDBACKDIC @"FeedBackDic"

#define ISFIRSTNEEDRYXZ @"IsFirstNeedRYXZ"//第一次使用app需要入园须知


#define CNNAME @"cnName"//个人信息需要的CNName
#define PERSONALDIC @"personalDic"//个人信息需要的字典detailBtns
#define DETAILBTNS @"detailBtns"//个人资料需要的按钮信息
#define USERICON @"userIcon"//个人头像文件地址
#define USERICONMongodbId @"userIconMongodbId"//个人头像文件的值

#define ADDTOPIC_URL @"add_addInfo.do"
#define TEACHERINFORELOAD @"teacherInfoReload"//教师个人资料由于是登录返回的数据，这里不重复请求，本地存储修改后删掉。

#define MEIJIA_SHADULE @"dataPlAdd_interfaceShowDateCourse.do?" // 美加课程表

/**
 Description: Some User Type
 One:   老师端：UserType = @"HPSTeacher";
 Two:   学员端：UserType = @"HPSStudent";
 Three: 其他端：UserType = @"Other";
 */

#define UserISHPSTeacher @"HPSTeacher"
#define UserISHPSStudent @"HPSStudent"
#define UserISOther @"Other"


#define PATHNAME @"Caches"
#define FIELDTIME @"fieldTime"
#define BTNSETTIME @"btnSetTime"
#define DATATIME @"dataTime"

#define LOGSTATE @"LogState"

#define NLOGSTATE @"noLogin"

#define OPERATIME @"operaTime"

#define PROID @"proId"
#define PROGRAMA @"programa_url"
#define PORT @"port"
#define PROGRAMANAME @"Name"

#define TIMEFORMATE @"HH:mm"
#define DATEFORMATE @"yyyy-MM-dd HH:mm:ss"


// 333323232e12435678ioi4355465 http://192.168.6.46:8080/edus_auto/#define BASE_URL @"http://182.92.108.162/edus_auto/"

#define SETBASEURL @"SETBBBASEURL"

//#define BASE_URL @"http://192.168.0.60:8888/" //百利

//#define titleUrl @"http://47.93.162.232:8081/"//悠季瑜伽复制粘贴头
#define titleUrl @"http://college.yogiyoga.cn/"//悠季瑜伽复制粘贴头
//#define BASE_URL @"http://182.92.108.162:8290/xtjy_edus/"//新通

//#define BASE_URL @"http://192.168.7.160:8081/edus_auto/"//zhuomei zngwenl
//#define BASE_URL @"http://182.92.108.162:8111/zm_edus/"//zhuomei 外网
//#define BASE_URL @"http://192.168.6.78:8087/yjyj_edus_auto/"//悠季瑜伽本地环境
//#define BASE_URL @"http://college.yogiyoga.cn/"//悠季瑜伽外部环境
#define BASE_URL @"http://college.yogiyoga.cn/"//悠季瑜伽  地址
//#define BASE_URL @"http://47.93.162.232:8081/yjyj_edus_auto/" //悠季瑜伽
//#define BASE_URL @"http://192.168.6.107:8080/yjyj_edus_auto/" //悠季瑜伽  测试地址  http://192.168.6.107:8080/yjyj_edus_auto/
//#define BASE_URL @"http://192.168.6.162:8080/edus_auto/"//新通教育李明飞

#define ZHAN_TIAN_XIANG @"mobileAddPage.html?"//主项目外网


//#define BASE_URL @"http://182.92.108.162:8291/edus_auto/"//主项目外网

//#define BASE_URL @"http://edu.shinyway.org/edu/"
//#define BASE_URL @"http://edu-cs.shinyway.org/edu/"

//#define BASE_URL @"http://192.168.6.82:8080/zm_edus_Branch/"//zhuomei

#define BASE_URL_ZTX @"http://192.168.6.110:8080/edus_auto/mobileAddPage.html?"//新通 占天祥  点击加号展开 Url

//#define BASE_URL @"http://192.168.6.150:8081/edus_auto/"//陈蒙
//#define BASE_URL @"http://192.168.6.150:8081/edus_auto_main/"//陈蒙主项目
//#define BASE_URL @"http://192.168.6.117:8080/edus_auto/"//红伟
//#define BASE_URL @"http://192.168.6.150:8081/hps_edus_auto/"//陈蒙

//#define BASE_URL @"http://192.168.6.171:8080/edus_auto/"//小产品
//#define BASE_URL @"http://182.92.108.162/edus_auto/"//外网
//#define BASE_URL @"http://192.168.6.179:8080/edus_auto/"//张志刚

//#define BASE_URL @"http://124.254.63.60:8874/edus_auto/"//HAMPSON

//#define BASE_URL @"http://192.168.6.72:8080/edus_auto/"//主项目地址

//#define BASE_URL @"http://192.168.6.150:8081/hps_edus_auto/"//HAMPSON

//#define BASE_URL @"http://192.168.6.150:8081/hps_edus_auto/"//HAMPSON

//#define BASE_URL @"http://182.92.108.162:8129/edus_auto/"//张志刚外网-汉普森

//#define BASE_URL @"http://182.92.108.162:8130/edus_auto/"//阿里云

//phone_resetStuPassword.do?stuId=76&oldPassword=111111&newPassword=000000

// 获取照片地址
#define GETPIC @"DownLoadFile?"

// 上传p地址

// 直接操作请求地址
#define STRIT @"update_interfaceDicrectTrigger.do?" // buttonType==21 buttonType=21&dataIds=7&directSetIds=&pageId=0&tableId=30
#define memberUrl @"http://192.168.0.60:8888/edus_auto/model_interfaceToList.do"

#define BASE_URL2 @"http://192.168.6.150:8081/hps_edus_auto/"//HAMPSON
#define POSTPIC @"servlet/OmFileUploadServlet"
#define passWordUrlMain @"phone_resetMainProjectPassword.do?"//修改密码主项目
#define passWordUrl @"phone_resetStuPassword.do?"//修改密码
#define zm_passWordUrl @"update_interfaceUpdate.do?"//修改密码
#define deleteMessage_URL @"mongoDelete_interfaceDelete.do?"//删除消息
#pragma mark - 消息列表接口
#define MESSAGE @"mongoModel_interfaceSysMessList.do?"
#define MESSAGEDETAIL @"msgSet_toUpdateMsgIfSeeInterface.do?"//专门用于修改是否查看的请求地址
#define LOGIN_URL @"login_interfaceLogin.do"
#define List_URL @"List1"
#define Field_URL @"Field"
#define Button_URL @"button"
#define Opera_URL @"Opera"
#define ADD_URL @"Add"
#define ALL_DELE_URL @"AllDele"
#define EDIT_URL @"Eeit"
#define DELE_URL @"Dele_people"
#define EDITCOMMIT_URL @"Edit_commit"
#define EDITQuary_URL @"Edit_quary"

#define PROJECTREQUEST_URL @"login_interfaceProLogin.do"
#define LISTSVIEWREQUEST_URL @"model_interfaceToList.do"
#define ADDMF_URL @"add_interfaceToAdd.do"
#define ADDMF_URL23 @"add_toAdd.do"//web
#define ADDMF_URL24 @"add_toAddPage.do"//web
#define ADD_Commit_URL @"add_interfaceAdd.do"
#define UPDATEMF_URL @"update_interfaceToUpdate.do"
#define UPDATEMF_URL23 @"update_toUpdatePage.do"//web
#define DELETE_URL @"delete_interfaceDelete.do"
#define UPDATEMFSUB_URL @"update_interfaceUpdate.do"
#define TREEDIALOG_URL @"treeDialog_interfaceToList.do"
#define BUTTON_STRING @"buttonString"                                           // 当前用户按钮权限字符串
#define RELATIONADD_URL @"addRelation_interfaceToAddRelationPage.do?"
#define RELATIONADD_URL23 @"addRelation_toAddRelationPage.do?"//web

#define TMPREQUEST_URl @"add_interfaceAjaxGetMaxRule.do?"
#define KECHENGBIAO_URl @"dataPlAdd_interfaceShowDateCourse.do?"
#define GOTOSCHOOL @"model_ajaxList.do?"
#define SCHOOLINFOID @"phone_startSchoolInfo.do?"
//#define PERSONAL_INFO_URl @"model_interfaceToList.do?pageId=2512&tableId=19&source=1"
#define PERSONAL_INFO_URl @"model_interfaceToList.do?"

#define SHANGYUAN_SHADULE @"dataPlAdd_interfaceShowDateClassTypeCourse.do?"    // 上元 课程表
#define SHANGYUAN_SEARCH @"dataPlAdd_interfaceShowClassType.do?"

/**
 *事物看板跳转页面链接
 */
#define SHIWUKANBAN @"model_interfaceToList.do?ctType=-1&pageType=1"

// "model_toList?ctType=3&SourceDataId="+homeSetId =0"&pageId=1 "+penetratePageId+"&tableId="+tableId+"&pageType=1
#define NETSTATEA @"netState"

/**
 传入用户名，页面名，文件夹名
 */

//static const CGFloat MJDuration = 0.5;

static inline NSString * myselfSaveFile(NSString *userNum, NSString *paramaString,NSString *fileName) {
    
    NSString *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES)[0];
    
    
    NSString *imageDir = [[paths stringByAppendingPathComponent:userNum]stringByAppendingPathComponent:paramaString];
    BOOL isDir = NO;
    NSFileManager *fileManager = [NSFileManager defaultManager];
    BOOL existed = [fileManager fileExistsAtPath:imageDir isDirectory:&isDir];
    if ( !(isDir == YES && existed == YES) )
    {
        [fileManager createDirectoryAtPath:imageDir withIntermediateDirectories:YES attributes:nil error:nil];
    }
    
    NSLog(@"%@", imageDir);
    
    return imageDir;
}

static inline NSString *getSaveFile(NSString * userNum,NSString *founctionName){
    
    NSString *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES)[0];
    
    NSString *imageDir = [[paths stringByAppendingPathComponent:userNum]stringByAppendingPathComponent:founctionName];
    return imageDir;
    
}
//moveCashes = removeCaches(userName());

static inline BOOL removeCaches(NSString *userName){
    NSString *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES)[0];
    NSString *imageDir = [NSString stringWithFormat:@"%@/%@/", paths, userName];
    NSFileManager *fileManager = [NSFileManager defaultManager];
    
    BOOL isDir = NO;
    BOOL existed = [fileManager fileExistsAtPath:imageDir isDirectory:&isDir];
    
    if(existed){
        BOOL success = [fileManager removeItemAtPath:imageDir error:nil];
        return success;
    }else{
        return YES;
        
    }
    
}



#pragma mark - 获取基础地址
static inline NSString *getSessionId(){
    
    
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:SESSION_ID];
}

#pragma mark - 保存 基础 地址
static inline void saveSessionId(NSString *Id){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:Id forKey:SESSION_ID];
    [userDefault synchronize];
}
#pragma mark - 获取基础地址
static inline NSString *getBase(){
    
    return BASE_URL;
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:BASE_URL_SAVE];
}

#pragma mark - 保存 基础 地址
static inline void saveBaseUrl(NSString *baseUrl){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:baseUrl forKey:BASE_URL_SAVE];
    [userDefault synchronize];
}


static inline void saveUserName(NSString *user){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:user forKey:USER];
    [userDefault synchronize];
}

static inline void savePersonDic(NSDictionary *dic){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:dic forKey:PERSONDIC];
    [userDefault synchronize];
}


static inline void saveFeedBackDic(NSDictionary *dic){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:dic forKey:FEEDBACKDIC];
    [userDefault synchronize];
}

static inline void saveIsFirstNeedRYXZ(NSString *Str){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:Str forKey:ISFIRSTNEEDRYXZ];
    [userDefault synchronize];
}

static inline void saveCnName(NSMutableArray *dic){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:dic forKey:CNNAME];
    [userDefault synchronize];
}

static inline void saveDetailBtns(NSMutableArray *dic){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:dic forKey:DETAILBTNS];
    [userDefault synchronize];
}
static inline void saveUserIcon(NSString *Path){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:Path forKey:USERICON];
    [userDefault synchronize];
}

static inline void saveUserIconMongodbId(NSMutableDictionary *dic){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
  
    [userDefault removeObjectForKey:USERICONMongodbId];
  
    [userDefault setObject:dic forKey:USERICONMongodbId];

    [userDefault synchronize];
}

static inline void savePersonalDic(NSDictionary *dic){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:dic forKey:PERSONALDIC];
    [userDefault synchronize];
}


static inline void saveUserId(NSString *user){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:user forKey:USERID];
    [userDefault synchronize];
}

static inline void saveUserNameDes(NSString *user){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:user forKey:USERNAME];
    [userDefault synchronize];
}

static inline void saveUserIfChange(NSString *Change){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:Change forKey:UserChange];
    [userDefault synchronize];
}
//*************⬇️功能⬇️***************
static inline void setEnglishLanguage(BOOL mark){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if (mark) {
        [userDefault setObject:@"1" forKey:EnglishLanguage];
    }else{
        [userDefault setObject:@"0" forKey:EnglishLanguage];
    }
    
    [userDefault synchronize];
}

static inline void setAvatarUpload(BOOL mark){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if (mark) {
        [userDefault setObject:@"1" forKey:AvatarUpload];
    }else{
        [userDefault setObject:@"0" forKey:AvatarUpload];
    }
    
    [userDefault synchronize];
}

static inline void setLeftRightModel(BOOL mark){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if (mark) {
        [userDefault setObject:@"1" forKey:LeftRightModel];
    }else{
        [userDefault setObject:@"0" forKey:LeftRightModel];
    }
    
    [userDefault synchronize];
}

static inline void setUserRoleName(BOOL mark){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if (mark) {
        [userDefault setObject:@"1" forKey:UserRoleName];
    }else{
        [userDefault setObject:@"0" forKey:UserRoleName];
    }
    
    [userDefault synchronize];
}

static inline void setTimeLineModel(BOOL mark){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if (mark) {
        [userDefault setObject:@"1" forKey:TimeLineModel];
    }else{
        [userDefault setObject:@"0" forKey:TimeLineModel];
    }
    
    [userDefault synchronize];
}

static inline void setEvalutionModel(BOOL mark){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if (mark) {
        [userDefault setObject:@"1" forKey:EvalutionModel];
    }else{
        [userDefault setObject:@"0" forKey:EvalutionModel];
    }
    
    [userDefault synchronize];
}//PersonalInformationStarUI


static inline void setPersonalInformationStarUI(BOOL mark){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if (mark) {
        [userDefault setObject:@"1" forKey:PersonalInformationStarUI];
    }else{
        [userDefault setObject:@"0" forKey:PersonalInformationStarUI];
    }
    
    [userDefault synchronize];
}

static inline void setMainLoginUI(BOOL mark){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if (mark) {
        [userDefault setObject:@"1" forKey:MainLoginUI];
    }else{
        [userDefault setObject:@"0" forKey:MainLoginUI];
    }
    
    [userDefault synchronize];
}

//*************⬆️功能⬆️***************
//***********************⬇️获取权限加以判断用⬇️*************************
static inline BOOL getEnglishLanguage(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if ([[userDefault valueForKey:EnglishLanguage] isEqualToString:@"1"]) {
        return YES;
    }else{
        return NO;
    }
}


static inline BOOL getAvatarUpload(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if ([[userDefault valueForKey:AvatarUpload] isEqualToString:@"1"]) {
        return YES;
    }else{
        return NO;
    }
}

static inline BOOL getLeftRightModel(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if ([[userDefault valueForKey:LeftRightModel] isEqualToString:@"1"]) {
        return YES;
    }else{
        return NO;
    }
}

static inline BOOL getUserRoleName(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if ([[userDefault valueForKey:UserRoleName] isEqualToString:@"1"]) {
        return YES;
    }else{
        return NO;
    }
}

static inline BOOL getTimeLineModel(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if ([[userDefault valueForKey:TimeLineModel] isEqualToString:@"1"]) {
        return YES;
    }else{
        return NO;
    }
}


static inline BOOL getEvalutionModel(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if ([[userDefault valueForKey:EvalutionModel] isEqualToString:@"1"]) {
        return YES;
    }else{
        return NO;
    }
}

static inline BOOL getPersonalInformationStarUI(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if ([[userDefault valueForKey:PersonalInformationStarUI] isEqualToString:@"1"]) {
        return YES;
    }else{
        return NO;
    }
}


static inline BOOL getMainLoginUI(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    if ([[userDefault valueForKey:MainLoginUI] isEqualToString:@"1"]) {
        return YES;
    }else{
        return NO;
    }
}

//***********************⬆️获取权限加以判断用⬆️*************************

static inline void savePassWord(NSString *passWord){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:passWord forKey:PASS];
    [userDefault synchronize];
}


static inline void saveLoginState(NSString *logState){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:logState forKey:LOGSTATE];
    [userDefault synchronize];
}

static inline void saveDataTime(NSString *fieldTime){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:fieldTime forKey:DATATIME];
    [userDefault synchronize];
}


//存储教师个人资料
static inline void SaveTeacherInfo(NSDictionary *teacherIntroduce){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:teacherIntroduce forKey:TEACHERINFORELOAD];
    [userDefault synchronize];
}


static inline void saveFieldTime(NSString *fieldTime){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:fieldTime forKey:FIELDTIME];
    [userDefault synchronize];
}

static inline void saveOperaTime(NSString *fieldTime){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:fieldTime forKey:OPERATIME];
    [userDefault synchronize];
}

static inline void saveBtnSetTime(NSString *fieldTime){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:fieldTime forKey:BTNSETTIME];
    [userDefault synchronize];
}

static inline void saveURL(NSString *fieldTime,NSString *url){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:fieldTime forKey:url];
    [userDefault synchronize];
}

static inline NSString *userName(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:USER];
}

static inline NSString *userNameDes(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:USERNAME];
}

static inline NSString *getUserChange(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:UserChange];
}
//获取教师个人资料
static inline NSDictionary *getTeacherInfo(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:TEACHERINFORELOAD];
}





static inline NSString *rolenames(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:ROLENAMES];
}


static inline NSString *userId(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:USERID];
}
static inline NSDictionary *personDic(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:PERSONDIC];
}
static inline NSDictionary *feedBackDic(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:FEEDBACKDIC];
}

static inline NSString *getIsFirstNeedRYXZ(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:ISFIRSTNEEDRYXZ];
}

static inline NSMutableArray *cnName(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:CNNAME];
}

static inline NSString *userIcon(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:USERICON];
}

static inline NSMutableDictionary *userIconMongodbId(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:USERICONMongodbId];
}

static inline NSMutableArray *detailBtns(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:DETAILBTNS];
}


static inline NSDictionary *personalDic(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:PERSONALDIC];
}




static inline NSString *passWord(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:PASS];
}

static inline NSString *logState(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:LOGSTATE];
}

static inline NSString *FieldTime(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:FIELDTIME];
}

static inline NSString *BtnTime(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:BTNSETTIME];
}

static inline NSString *Operatime(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:OPERATIME];
}

static inline NSString *datatime(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:DATATIME];
}

static inline NSString *fieldDate(){
    NSDateFormatter *formatter = [[NSDateFormatter alloc]init];
    [formatter setDateFormat:DATEFORMATE];
    NSString *destDateString = [formatter stringFromDate:[NSDate date]];
    return destDateString;
}

static inline NSString *urlStr(NSString *url){
    NSString *str = [url substringToIndex:[url length]-2];
    return str;
}

static inline NSString *getUrl(NSString *url){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:url];
}

#pragma netRemember
static inline void setNetRequest(NSString *str){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:str forKey:NETSTATEA];
}

static inline NSString *getNetRequest(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:NETSTATEA];
}

#define button ec是否存在
static inline BOOL textButton(NSString *str){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    NSString *buttonString = [NSString stringWithFormat:@"%@", [userDefault valueForKey:BUTTON_STRING]];
    if([buttonString rangeOfString:str].location !=NSNotFound){
        return YES;
    }else{
        return NO;
    }
}


//static inline void cancelUserChange(){
//    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
//    [userDefault removeObjectForKey:UserChange];
//    [userDefault synchronize];
//}
//删除教师个人资料
static inline void cancelTeacherInfo(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault removeObjectForKey:TEACHERINFORELOAD];
    [userDefault synchronize];
}


#pragma mark - 存储用户角色

/**
 *存储用户角色
 */
static inline void saveUserDisDes(NSString *user){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:user forKey:ROLENAMES];
    [userDefault synchronize];
    
    NSLog(@"%@", [userDefault valueForKey:ROLENAMES]);
}


#pragma mark - 风格

/**
 *存储UI    风格
 */
static inline void saveUIStyle(NSString *user){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:user forKey:UISTYLE];
    [userDefault synchronize];
    
    NSLog(@"%@", [userDefault valueForKey:UISTYLE]);
}

#pragma mark - 获取风格

/**
 *获取UI    风格
 */
static inline NSString *getUIStyle(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:UISTYLE];
}

/**
 *存储用户   种类
 */
static inline void saveUserType(NSString *user){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setObject:user forKey:USERTYPE];
    [userDefault synchronize];
    
    NSLog(@"%@", [userDefault valueForKey:USERTYPE]);
}

#pragma mark - 获取风格

/**
 *获取用户   种类
 */
static inline NSString *getUserType(){
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    return [userDefault valueForKey:USERTYPE];
}
#define CURRENTVERSION [[UIDevice currentDevice].systemVersion floatValue]

#define ShowActivity [BQActivityView showActiviTy];
#define HideActivity [BQActivityView hideActiviTy];
#endif /* EducationAdminClient_URL_h */
